<ion-view view-title="增票资质" class="invoice">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
		<ion-nav-buttons side="right">
			<button class="button button-clear saveText" on-tap="onshow_address()" ng-if="datas">保存</button>
		</ion-nav-buttons>
	</ion-nav-bar>
	
	<!--描述：滑动块-->
	<ion-content class="has-header bg">
		<div class="list">
			<!--status_code：0审核中  1通过  2拒绝-->
			<li class="item item-input statusItem" ng-show="datas.status">
				<img src="./img/guilin/other/waite.icon@2x.png" ng-if="datas.status_code==0"/>
				<img src="./img/guilin/other/link_OK.icon@2x.png" ng-if="datas.status_code==1"/>
				<img src="./img/guilin/other/fail.icon@2x.png" ng-if="datas.status_code==2"/>
				{{datas.status}}
			</li>
			
			<li class="item item-input mainItem item-borderless">
				<div class="textLable">单位名称</div>
				<input type="text" name="phone" placeholder="请输入单位名称" ng-model="datas.company_name" />
				<img src="./img/guilin/common/icon_delete_g@2x.png" on-tap="clearInput(1)"/>
			</li>

			<li class="item item-input mainItem">
				<div class="textLable">税号&nbsp;<img src="./img/guilin/common/icon_note@2x.png" width="15" on-tap="showTip()"/></div>
				<input ng-readonly="datas.status_code=='1'" class="timeLight" type="text" placeholder="请输入统一社会信用代码" ng-model="datas.tax_no" />
				<img src="./img/guilin/common/icon_delete_g@2x.png" on-tap="clearInput(2)" ng-if="datas.status_code!='1'"/>
			</li>

			<li class="item item-input mainItem">
				<div class="textLable">注册地址</div>
				<input type="text" name="phone" placeholder="请输入注册地址" ng-model="datas.address" />
				<img src="./img/guilin/common/icon_delete_g@2x.png" on-tap="clearInput(3)"/>
			</li>

			<li class="item item-input mainItem">
				<div class="textLable">注册电话</div>
				<input type="text" name="phone" placeholder="请输入注册电话" ng-model="datas.phone" />
				<img src="./img/guilin/common/icon_delete_g@2x.png" on-tap="clearInput(4)"/>
			</li>

			<li class="item item-input mainItem">
				<div class="textLable">开户银行</div>
				<input type="text" name="phone" placeholder="请输入开户银行" ng-model="datas.bank_name" />
				<img src="./img/guilin/common/icon_delete_g@2x.png" on-tap="clearInput(5)"/>
			</li>

			<li class="item item-input mainItem">
				<div class="textLable">开户账户</div>
				<input type="text" name="phone" placeholder="请输入开户账号" ng-model="datas.bank_no" />
				<img src="./img/guilin/common/icon_delete_g@2x.png" on-tap="clearInput(6)"/>
			</li>
			
			<!--首次添加，显示下方2个-->
			<li class="item agreeItem item-input">
				<img src="{{datas.isAgree?'./img/guilin/common/icon_checked_r@2x.png':'./img/guilin/common/icon_uncheck_r@2x.png'}}" width="20" on-tap="handleIsAgree()"/>
				&nbsp;我已阅读并同意<span class="file" on-tap="openModal_invoice()">《增值税专用发票协议》</span>
			</li>
			<li class="item bg item-borderless" ng-if="!datas">
				<div class="basebtn" ng-class="datas.company_name&&datas.tax_no&&datas.address&&datas.phone&&datas.bank_name&&datas.bank_no&&datas.isAgree?'redBtn':'grayBtn'" on-tap="onshow_address()">保存</div>
			</li>
			
			<li class="item tipItem">
				申请增票资质并审核通过后，您在采购时，就可以要求对方开具增值税发票了
			</li>
		</div>

	</ion-content>
</ion-view>